package com.example.chat.beans;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("tb_banner")
public class Banner {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String title;//标题
    private String img;

    private int type; // 类型0：不跳转 1：站内 2：站外

    private String linkUrl;

    private int videoId;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createTime;//创建时间
    private int status; // 状态 1;上架 2:下架

}
